const { mongoose } = require("./db")
const Schema = mongoose.Schema
const person_infoSchema = new Schema({
    name: String,   //家庭成员姓名,
    img: String, //家庭成员头像
    sex: String,//家庭成员性别
    status: String, //家庭成员身份
    birthday: Date, //家庭成员年龄
    phone: String, //电话
    idcard: String,//身份证号码
    address: String, //现居地址
    national: String,//民族
    marital: String,//婚姻状况
    img: String,//头像
})
const person_infoModel = mongoose.model('person_info', person_infoSchema, "person_info")
// person_infoModel.create([{
//     name: "赵苗苗",
//     // img: String, //家庭成员头像
//     sex: "女",//家庭成员性别
//     status: "本人", //家庭成员身份
//     birthday: "2000-02-04", //家庭成员年龄
//     phone: "15831620000", //电话
//     idcard: "130724208120066",//身份证号码
//     address: "河北省三河市新天地一期", //现居地址
//     national: "汉",//民族
//     marital: "未婚",//婚姻状况
//     img: "https://img0.baidu.com/it/u=1217304799,3113310756&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1683306000&t=9d4074a4e7b5c8e73df218b3958cae8e"
// }])
module.exports = { person_infoModel }